import { globalIgnores } from 'eslint/config'
import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript'
import pluginVue from 'eslint-plugin-vue'
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting'

export default defineConfigWithVueTs({
  files: ['**/*.{ts,mts,tsx,vue}'],
  rules: {
    'vue/multi-word-component-names': 'off',
  },
  ...globalIgnores(['**/dist/**', '**/dist-ssr/**', '**/coverage/**']),
  ...pluginVue.configs['flat/essential'],
  ...vueTsConfigs.recommended,
  ...skipFormatting,
})
